import { combineReducers } from 'redux'

const history_index = (state = {}, action) => {
    switch (action.type) {
        case "HISTORY_INDEX":
            return action.value
        default:
            return state;
    }
}
const history_nav = (state = [], action) => {
    switch (action.type) {
        case "HISTORY_CHANGE":
            return action.value
        default:
            return state;
    }
}
const INDEX = combineReducers({ history_index, history_nav })
export default INDEX